/**
 * Copyright © 2016-2024 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import '../../../../../../../scss/constants';

:host {
  width: 100%;
  height: 100%;
  display: block;
  overflow-x: auto;
  padding: 0;

  .connector-container {
    height: 100%;
    width: 100%;
    flex-direction: row;
    @media #{$mat-lt-lg} {
      flex-direction: column;
    }

    & > section:not(.table-section) {
      max-width: unset;
      @media #{$mat-gt-md} {
        max-width: 50%;
      }
    }

    .table-section {
      min-height: 35vh;
      overflow: hidden;

      .table-container {
        overflow: auto;
      }
    }

    .flex {
      flex: 1;
    }

    .input-container {
      height: auto;
    }

    .section-container {
      background-color: #fff;
    }
  }

  .mat-toolbar {
    background: transparent;
    color: rgba(0, 0, 0, .87) !important;
  }

  .mat-mdc-slide-toggle {
    margin: 0 8px;
  }

  .status {
    text-align: center;
    border-radius: 16px;
    font-weight: 500;
    width: fit-content;
    padding: 5px 15px;
    &-sync {
      background: rgba(25, 128, 56, .06);
      color: rgb(25, 128, 56);
    }
    &-unsync {
      background: rgba(203, 37, 48, .06);
      color: rgb(203, 37, 48);
    }
  }

  mat-row {
    cursor: pointer;
  }

  .dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
  }

  .hasErrors {
    background-color: rgb(203, 37, 48);
  }

  .noErrors {
    background-color: rgb(25, 128, 56);
  }
}
